<?php

use Illuminate\Database\Seeder;
use App\Models\Subject;
use Faker\Factory;

class subjectTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run(Subject $subject)
    {
        //
        $subject->truncate();
        $faker = Factory::create('zh-CN');
        for($i=0;$i<100;$i++){
                $subject->create([
                   'subject_name'=>$faker->unique()->username,
                    'logo'=>$faker->name,
                ]);
        }
    }
}
